DevForce Help Reference
RefetchEntitiesAsync(EntityManager,IEnumerable,MergeStrategy,Action<EntityRefetchOperation>,Object) Method


A collection of Entities to refetch
Merge strategy
Callback invoked when asynchronous operation completes
Token identifying the asynchronous operation
Forces a collection of entities to be refetched from the backend data source.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function RefetchEntitiesAsync( _
   ByVal em As EntityManager, _
   ByVal entities As IEnumerable, _
   ByVal mergeStrategy As MergeStrategy, _
   ByVal userCallback As Action(Of EntityRefetchOperation), _
   Optional ByVal userState As Object _
) As EntityRefetchOperation
'Usage
 
Dim em As EntityManager
Dim entities As IEnumerable
Dim mergeStrategy As MergeStrategy
Dim userCallback As Action(Of EntityRefetchOperation)
Dim userState As Object
Dim value As EntityRefetchOperation
 
value = EntityManagerAsyncExtensions.RefetchEntitiesAsync(em, entities, mergeStrategy, userCallback, userState)

Parameters

em
entities
A collection of Entities to refetch
mergeStrategy
Merge strategy
userCallback
Callback invoked when asynchronous operation completes
userState
Token identifying the asynchronous operation
Remarks
Provide a userCallback if you want to be notified when the operation completes. Use the userState to uniquely identify this call. You can cancel a pending asynchronous call using IdeaBlade.EntityModel.BaseOperation<TEventArgs,TOp>.Cancel.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityManagerAsyncExtensions Class
EntityManagerAsyncExtensions Members
Overload List

Send Feedback